<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
</head>
<body>
<div  id="table_form_div" class="table_form1">
  <table class="table-form" width="100%">
   <tbody>
      <tr>
	       <td width="15%" class="table-th">姓名</td>
	       <td class="table-td" width="35%">${entity.name}</td>
	        <td  width="15%" class="table-th">性别</td>
           <td class="table-td"  width="35%">
           		<c:choose>
        			<c:when test="${entity.gender==1}">男</c:when>
        			<c:otherwise>女</c:otherwise>
        		</c:choose>
           </td>
	  </tr>
	  <tr>
	       <td  width="15%" class="table-th">出生日期</td>
            <td class="table-td" style="white-space: nowrap;" width="15%">
            	<fmt:formatDate value="${entity.birthDay}" pattern="yyyy-MM-dd"/>
           </td>
    　		  <td rowspan="8" colspan="2" align="center">
    		 <img src="<c:choose><c:when test='${not empty entity.photo}'>${ctx}/upload/${entity.photo}</c:when>
	        <c:otherwise>${ctx}/images/organ/nophoto.gif </c:otherwise></c:choose>" id="img_photo" style="width: 90%; height:350px;"><br>
    	  </td>
	  </tr>
	  　
      <tr>
      	  <td  width="15%" class="table-th">身份证</td>
	      <td class="table-td"  width="35%">${entity.idno}</td></td>
	  </tr>
	   <tr>
   			<td width="15%" class="table-th">联系电话</td>
            <td class="table-td"  width="35%">${entity.contractPhone}</td>
      </tr>
      <tr>
           <td width="15%" class="table-th">家庭电话</td>
           <td class="table-td"  width="35%">${entity.homePhone}</td>
      </tr>
	  <tr>
	      <td width="15%" class="table-th">所在单位</td>
	      <td class="table-td" width="35%">${entity.company.name }</td> </td>
	   </tr>
	   <tr>
	      <td width="15%" class="table-th">岗位</td>
	      <td class="table-td" width="35%">${entity.dutyPost}</td>
      </tr>
      <tr>
	      <td  width="15%" class="table-th">人员状态</td>
	           <td class="table-td"  width="35%">
		         <c:choose>
	           		<c:when test="${entity.status==1 }">正式人员</c:when>
	           		<c:when test="${entity.status==2 }">实习人员</c:when>
	           		<c:otherwise>实习人员</c:otherwise>
	           </c:choose>
	       </td>
	  </tr>
      <tr>
          <td  width="15%" class="table-th">人员类型</td>
          <td class="table-td"  width="35%">
          		<c:choose>
	           		<c:when test="${entity.type==1}">驾驶员</c:when>
	           		<c:when test="${entity.type==2 }">押运员</c:when>
	           		<c:when test="${entity.type==3 }">安管员</c:when>
	           		<c:when test="${entity.type==4 }">装卸管理员</c:when>
	           		<c:when test="${entity.type==5 }">主要负责人</c:when>
	           		<c:otherwise></c:otherwise>
           		</c:choose>
           </td> 
      </tr>
      <tr id="tr_driverLiceseNum" <c:choose><c:when test="${empty entity.type || entity.type==1 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
           <td  width="15%" class="table-th">驾驶证号</td>
           <td class="table-td"  width="35%">${entity.driverLiceseNum }</td>
           <td  width="15%" class="table-th">驾驶证号有效期</td>
            <td class="table-td"  width="35%">
            	<c:choose>
            		<c:when test="${not empty entity.driverLiceseNumValidity }"><fmt:formatDate value="${entity.driverLiceseNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
         	</td>	
          
       </tr>
       <tr id="tr_driverQuaCertNum" <c:choose><c:when test="${empty entity.type || entity.type==1 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">驾驶员资格证
           	</td>
       	   <td class="table-td"  width="35%">${entity.driverQuaCertNum}</td>
       		<td  width="15%" class="table-th">有效期	</td>
       	   <td class="table-td"  width="35%">
       	   		<c:choose>
            		<c:when test="${not empty entity.driverQuaCertNumValidity }"><fmt:formatDate value="${entity.driverQuaCertNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
           </td>
       </tr>
       
        <tr id="tr_dirverType" <c:choose><c:when test="${empty entity.type || entity.type==1 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">准驾类型</td>
       		<td colspan="3" class="table-td">${entity.driverType }</td>
       </tr>
       
       <tr id="tr_superCargoNum" <c:choose><c:when test="${entity.type==1||entity.type==2 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">押运员资格证</td>
           	<td class="table-td"  width="35%">${entity.superCargoNum }</td>
       		<td  width="15%" class="table-th">有效期</td>
       	 	<td class="table-td"  width="35%">
       	 		<c:choose>
            		<c:when test="${not empty entity.superCargoNumValidity }"><fmt:formatDate value="${entity.superCargoNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
            </td>
       </tr>
       
        <tr id="tr_safetyOfficerNum" <c:choose><c:when test="${entity.type==3 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">安管员资格证</td>
           	<td class="table-td"  width="35%">${entity.safetyOfficerNum }</td>
           
       		<td  width="15%" class="table-th">有效期</td>
       	 	<td class="table-td"  width="35%">
       	 		<c:choose>
            		<c:when test="${not empty entity.safetyOfficerNumValidity }"><fmt:formatDate value="${entity.safetyOfficerNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
            </td>
       </tr>
        <tr id="tr_mainPersonResNum" <c:choose><c:when test="${entity.type==4 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">主要主负责人资格证</td>
           	<td class="table-td"  width="35%">${entity.mainPersonResNum }	</td>
       		<td  width="15%" class="table-th">有效期</td>
       	 	<td class="table-td"  width="35%">
       	 		<c:choose>
            		<c:when test="${not empty entity.mainPersonResNumValidity }"><fmt:formatDate value="${entity.mainPersonResNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
            </td>
       </tr>
        <tr id="tr_loadUnloadManNum" <c:choose><c:when test="${entity.type==5 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">装卸管理员资格证</td>
           	<td class="table-td"  width="35%">${entity.loadUnloadManNum }</td>
       		<td  width="15%" class="table-th">有效期</td>
       	 	<td class="table-td"  width="35%">
       	 		<c:choose>
            		<c:when test="${not empty entity.loadUnloadManNumValidity }"><fmt:formatDate value="${entity.loadUnloadManNumValidity}" pattern="yyyy-MM-dd"/></c:when>
            		<c:otherwise></c:otherwise>
            	</c:choose>
            </td>
       </tr>
     
     <tr>
       		<td  width="15%" class="table-th">企业聘用限期</td>
       		<td width="20%"	class="table-td">${entity.employTime } 年</td>
       		<td  width="15%" class="table-th">责任状限期</td>
       		<td width="20%"	class="table-td">${entity.dutyTime }年</td>
       </tr>
       
      <tr>
       <td   width="15%" class="table-th" >地址</td>
	       <td    class="table-td"  colspan="3"> ${entity.address }</td>
	    </tr>
     <tr>
      <td width="15%" class="table-th">备注</td>
	       <td class="table-td" colspan="3">${entity.remark }</td>
     </tr>
	 </tbody>
  </table>
  </div>
  </body>
  </html>
  